import java.util.Random;

/**
 * Created by Coing on 2017/2/26.
 */
public class Solution {
    public int romanToInt(String s){
        int num = Integer.parseInt(s);
        return num;
    }

    public static void main(String[] args) {
        Solution solution = new Solution();
        int num = new Random().nextInt(3999);
        System.out.println("num : " + num);
        String str_num = String.valueOf(num);
        System.out.println( solution.romanToInt(str_num) );

    }
}
